stages:
  - puppet3
  - puppet4

'unit-puppet-3':
  stage: puppet3
  script:
    - bundle install --without development system_tests
    - bundle exec rake validate
    - bundle exec rake lint
    - bundle exec rake spec SPEC_OPTS='--format documentation'
  tags:
  except:
    - tags

'unit-puppet-4':
  stage: puppet4
  script:
    - export PUPPET_GEM_VERSION='~> 4.2'
    - export STRICT_VARIABLES='yes'
    - bundle install --without development system_tests
    - bundle exec rake validate
    - bundle exec rake lint
    - bundle exec rake spec SPEC_OPTS='--format documentation'
  tags:
  except:
    - tags
  when: on_success
  allow_failure: true
